  <recentvideos>
{section name=j loop=$newvideos}
     <video>
          <vkey><![CDATA[ /?vkey={$newvideos[j].vkey}]]></vkey>
          <thumb>{if $newvideos[j].provider eq "yt"}http://img.youtube.com/vi/{$newvideos[j].flvdoname}/{$randthumb}.jpg{else}http://konkan.tv/thumb/{$randthumb}_{$newvideos[j].VID}.jpg{/if}</thumb>
          <title>{$newvideos[j].title|escape:'mail'|escape:'htmlall'|escape:"quotes"|strip|truncate:25:"...":true}</title>
          	  <description>{if $newvideos[j].featuredesc ne ""}{$newvideos[j].featuredesc|escape:'mail'|escape:'htmlall'|escape:"quotes"|strip|truncate:175:"...":true}{else}{$newvideos[j].description|escape:'mail'|escape:'htmlall'|escape:"quotes"|strip|truncate:75:"...":true}{/if}</description>
	  <addtime>{insert name=time_range assign=rtime field=addtime IDFR=VID id=$newvideos[j].VID tbl=video}{$rtime}</addtime>
	  <author>{if $newvideos[j].provider eq "yt"}{$newvideos[j].contentowner}{else}{insert name=id_to_name assign=uname un=$newvideos[j].UID}{$uname}{/if}</author>
	  <views>{$newvideos[j].viewnumber}</views>
	  <commentcount>{insert name=comment_count assign=commentcount vid=$newvideos[j].VID}{$commentcount}</commentcount>
     </video>
{/section}
  </recentvideos>
